const globalData = {
	  cityObj: {
	    name: '',
	    code: ''
	  }
}
function getdays(year, month) {
  	let days = 31;
  	if (month == 2) {
  		// 判断是否闰年
  		if ((0 == year % 4 && 0 != year % 100) || (0 == year % 400)) {
  			days = 29;
  		} else {
  			days = 28;
  		}
  	} else {
  		if (month == 4 || month == 6 || month == 11 || month == 9) {
  			days = 30;
  		}
  	}
  	let arr = [];
  	for (let i = 1; i <= days; i++) {
  		i = (i < 10) ? ('0' + i) : i;
  		arr[i - 1] = {
  			label: i + '日',
  			val: i
  		};
  	}
  	return arr;
  }

  function displayTime(timestr) {
  	timestr = timestr.replace(/-/g, '/');
  	var result = timestr;
  	var dateTimeStamp = Date.parse(timestr);
  	var minute = 1000 * 60; //把分，时，天，周，半个月，一个月用毫秒表示
  	var hour = minute * 60;
  	var day = hour * 24;
  	var week = day * 7;
  	var halfamonth = day * 15;
  	var month = day * 30;
  	var now = new Date().getTime(); //获取当前时间毫秒
  	var diffValue = now - dateTimeStamp; //时间差

  	if (diffValue < 0) {
  		return;
  	}
  	var minC = diffValue / minute; //计算时间差的分，时，天，周，月
  	var hourC = diffValue / hour;
  	var dayC = diffValue / day;
  	var weekC = diffValue / week;
  	var monthC = diffValue / month;
  	if (monthC >= 1 && monthC <= 3) {
  		result = " " + parseInt(monthC) + "月前"
  	} else if (weekC >= 1 && weekC <= 3) {
  		result = " " + parseInt(weekC) + "周前"
  	} else if (dayC >= 1 && dayC <= 6) {
  		result = " " + parseInt(dayC) + "天前"
  	} else if (hourC >= 1 && hourC <= 23) {
  		result = " " + parseInt(hourC) + "小时前"
  	} else if (minC >= 1 && minC <= 59) {
  		result = " " + parseInt(minC) + "分钟前"
  	} else if (diffValue >= 0 && diffValue <= minute) {
  		result = "刚刚发表"
  	} else {
  		var datetime = new Date();
  		datetime.setTime(dateTimeStamp);
  		var Nyear = datetime.getFullYear();
  		var Nmonth = datetime.getMonth() + 1 < 10 ? "0" + (datetime.getMonth() + 1) : datetime.getMonth() + 1;
  		var Ndate = datetime.getDate() < 10 ? "0" + datetime.getDate() : datetime.getDate();
  		var Nhour = datetime.getHours() < 10 ? "0" + datetime.getHours() : datetime.getHours();
  		var Nminute = datetime.getMinutes() < 10 ? "0" + datetime.getMinutes() : datetime.getMinutes();
  		var Nsecond = datetime.getSeconds() < 10 ? "0" + datetime.getSeconds() : datetime.getSeconds();
  		result = Nyear + "-" + Nmonth + "-" + Ndate + ' ' + Nhour + ':' + Nminute
  	}
  	return result;
  }

  function isPhone(phoneNo) {
  	var myreg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/;
  	if (!myreg.test(phoneNo)) {
  		return false;
  	} else {
  		return true;
  	}
  }
  
  function isWx() {
  	var ua = navigator.userAgent.toLowerCase();
  	if (ua.match(/MicroMessenger/i) == "micromessenger") {
  		return true;
  	} else {
  		return false;
  	}
  }

  // 是否完善个人信息
  function hasUinfo(sunFun) {
  	let userInfo = uni.getStorageSync('userInfo');
  	if (userInfo.phone && userInfo.userName) {
  		if (sunFun) {
  			sunFun();
  		}
  	} else {
  		setTimeout(() => {
  			uni.showToast({
  				title: '请完善信息',
  				icon: 'none'
  			});
  			setTimeout(() => {
  				uni.hideToast();
  				uni.navigateTo({
  					url: '/pages/index/uinfo'
  				})
  			}, 1000)
  		}, 0);
  	}
  }

  function location() {
  	let local = {
  		attenCity: '苏州',
  		areaCode: '320500',
		address: ''
  	};
  	// 获取缓存位置
  	let location = localStorage.getItem('location');
  	// 如果获取到位置
  	if (location) {
  		local = JSON.parse(location);
  	}
  	return local;
  }

  var now = new Date(); //当前日期 
  var nowDayOfWeek = now.getDay(); //今天本周的第几天 
  var nowDay = now.getDate(); //当前日 
  var nowMonth = now.getMonth(); //当前月 
  var nowYear = now.getYear(); //当前年 
  nowYear += (nowYear < 2000) ? 1900 : 0; //

  var lastMonthDate = new Date(); //上月日期
  lastMonthDate.setDate(1);
  lastMonthDate.setMonth(lastMonthDate.getMonth() - 1);
  var lastYear = lastMonthDate.getYear();
  var lastMonth = lastMonthDate.getMonth();

  var dateUtil = {

  		getDay: function(day) {
  			var today = new Date();
  			var targetday_milliseconds = today.getTime() + 1000 * 60 * 60 * 24 * day;
  			today.setTime(targetday_milliseconds); //注意，这行是关键代码
  			var tYear = today.getFullYear();
  			var tMonth = today.getMonth();
  			var tDate = today.getDate();
  			tMonth = this.doHandleMonth(tMonth + 1);
  			tDate = this.doHandleMonth(tDate);
  			return tYear + "-" + tMonth + "-" + tDate;
  		},
  		doHandleMonth: function(month) {
  			var m = month;
  			if (month.toString().length == 1) {
  				m = "0" + month;
  			}
  			return m;
  		},

  		//格式化日期：yyyy-MM-dd 
  		formatDate: function(date) {
  			var myyear = date.getFullYear();
  			var mymonth = date.getMonth() + 1;
  			var myweekday = date.getDate();

  			if (mymonth < 10) {
  				mymonth = "0" + mymonth;
  			}
  			if (myweekday < 10) {
  				myweekday = "0" + myweekday;
  			}
  			return (myyear + "-" + mymonth + "-" + myweekday);
  		},

  		//获得某月的天数 
  		getMonthDays: function(myMonth) {
  			var monthStartDate = new Date(nowYear, myMonth, 1);
  			var monthEndDate = new Date(nowYear, myMonth + 1, 1);
  			var days = (monthEndDate - monthStartDate) / (1000 * 60 * 60 * 24);
  			return days;
  		},

  		//获得本周的开始日期 
  		getWeekStartDate: function() {
  			var weekStartDate = new Date(nowYear, nowMonth, nowDay - nowDayOfWeek);
  			return weekStartDate.Format('yyyy-MM-dd');
  		},

  		//获得本周的结束日期 
  		getWeekEndDate: function() {
  			var weekEndDate = new Date(nowYear, nowMonth, nowDay + (6 - nowDayOfWeek));
  			return weekEndDate.Format('yyyy-MM-dd');
  		},

  		//获得本月的开始日期 
  		getMonthStartDate: function() {
  			var monthStartDate = new Date(nowYear, nowMonth, 1);
  			return monthStartDate.Format('yyyy-MM-dd');
  		},

  		//获得本月的结束日期 
  		getMonthEndDate: function() {
  			var monthEndDate = new Date(nowYear, nowMonth, this.getMonthDays(nowMonth));
  			return monthEndDate.Format('yyyy-MM-dd');
  		},

  		//获得上月开始时间
  		getLastMonthStartDate: function() {
  			var lastMonthStartDate = new Date(nowYear, lastMonth, 1);
  			return lastMonthStartDate.Format('yyyy-MM-dd');
  		},

  		//获得上月结束时间
  		getLastMonthEndDate: function() {
  			var lastMonthEndDate = new Date(nowYear, lastMonth, this.getMonthDays(lastMonth));
  			return lastMonthEndDate.Format('yyyy-MM-dd');
  		},

  		setTime: function(afterMinute, time) {
  			var date = new Date(); //1. js获取当前时间
  			if (time) {
  				date = new Date(Date.parse(time.replace(/-/g, "\/")));
  			}
  			var min = date.getMinutes(); //2. 获取当前分钟
  			date.setMinutes(min + afterMinute); //3. 设置当前时间
  			var y = date.getFullYear();
  			var m = (date.getMonth() + 1) < 10 ? ("0" + (date.getMonth() + 1)) : (date.getMonth() + 1);
  			var d = date.getDate() < 10 ? ("0" + date.getDate()) : date.getDate();
  			var h = date.getHours() < 10 ? ('0' + date.getHours()) : date.getHours()
  			var f = date.getMinutes() < 10 ? ('0' + date.getMinutes()) : date.getMinutes()
  			var s = '00';
  			var formatdate = y + '-' + m + '-' + d + " " + h + ":" + f + ":" + s;
  			return formatdate;
  		},
  		setValue: function(time) {
  			if (time) {
  				let year = parseInt(time.slice(0, 4));
  				let month = parseInt(time.slice(5, 7));
  				let day = parseInt(time.slice(8, 10));
  				let hour = parseInt(time.slice(11, 13));
  				let minut = parseInt(time.slice(14, 16));

  				let date = new Date();
  				let thisYear = date.getFullYear();
  				return [year - thisYear + 3, month - 1, day - 1, hour, minut];
  			}
  		},
  		picktime: function(year, month) {
  			let date = new Date();
  			let y = date.getFullYear();
  			let m = date.getMonth() + 1;
  			let years = [],
  				hours = [],
  				seds = [],
  				days = [],
  				months = [];
  			let idx = 0,
  				hidx = 0,
  				sidx = 0,
  				midx = 0;
  			for (let i = 1; i < 13; i++) {
  				i = (i < 10) ? ('0' + i) : i;
  				months[midx++] = {
  					label: i + '月',
  					val: i
  				};
  			}
  			for (let i = 0; i < 24; i++) {
  				i = (i < 10) ? ('0' + i) : i;
  				hours[hidx++] = {
  					label: i + '时',
  					val: i
  				};
  			}
  			for (let i = 0; i < 60; i++) {
  				i = (i < 10) ? ('0' + i) : i;
  				seds[sidx++] = {
  					label: i + '分',
  					val: i + ':00'
  				};
  			}
  			for (let i = y - 3; i <= y + 1; i++) {
  				years[idx++] = {
  					label: i + '年',
  					val: i
  				};
  			}
  			if (year && month) {
  				days = getdays(year, month);
  			} else {
  				days = getdays(years[0], months[0]);
  			}
  			let arrs = [years, months, days, hours, seds];
  			return arrs;
  		}
	}
		function isLogin ()  {
		  let Authorization = wx.getStorageSync('Authorization');
		  if (Authorization) {
		    return true;
		  } else {
		    goLogin();
		  }
		}
		function goLogin ()  {
			 uni.navigateTo({
			    url: '/pages/login/login'
			  })
		}
		function enter() {
			if (isLogin()) {
			    let bussFlg = uni.getStorageSync('ONLINE_USER').bussFlg;
			    if ('00' == bussFlg) {
			      uni.navigateTo({
			        url: '/pages/cars/enter/enter'
			      })
			    } else if ('10' == bussFlg) {
			      uni.navigateTo({
			        url: '/pages/cars/enter/enter?type=2'
			      })
			    } else {
			      uni.navigateTo({
			        url: '/pages/user/store2/store2'
			      })
			    }
			  }
		}
		const provinceList = [{
		  "name": "北京市",
		  "code": "110000"
		}, {
		  "name": "天津市",
		  "code": "120000"
		}, {
		  "name": "河北省",
		    "code": "130000"
		}, {
		  "name": "山西省",
		  "code": "140000"
		}, {
		  "name": "内蒙古",
		  "code": "150000"
		}, {
		  "name": "辽宁省",
		  "code": "210000"
		}, {
		  "name": "吉林省",
		  "code": "220000"
		}, {
		  "name": "黑龙江省",
		  "code": "230000"
		}, {
		  "name": "上海市",
		  "code": "310000"
		}, {
		  "name": "江苏省",
		  "code": "320000"
		}, {
		  "name": "浙江省",
		  "code": "330000"
		}, {
		  "name": "安徽省",
		  "code": "340000"
		}, {
		  "name": "福建省",
		  "code": "350000"
		}, {
		  "name": "江西省",
		    "code": "360000"
		}, {
		  "name": "山东省",
		    "code": "370000"
		}, {
		  "name": "河南省",
		    "code": "410000"
		}, {
		  "name": "湖北省",
		    "code": "420000"
		}, {
		  "name": "湖南省",
		    "code": "430000"
		}, {
		  "name": "广东省",
		    "code": "440000"
		}, {
		  "name": "广西壮族",
		  "code": "450000"
		}, {
		  "name": "海南省",
		  "code": "460000"
		}, {
		  "name": "重庆市",
		    "code": "500000"
		}, {
		  "name": "四川省",
		  "code": "510000"
		}, {
		  "name": "贵州省",
		  "code": "520000"
		}, {
		  "name": "云南省",
		    "code": "530000"
		}, {
		  "name": "西藏",
		    "code": "540000"
		}, {
		  "name": "陕西省",
		  "code": "610000"
		}, {
		  "name": "甘肃省",
		    "code": "620000"
		}, {
		  "name": "青海省",
		    "code": "630000"
		}, {
		  "name": "宁夏",
		    "code": "640000"
		}, {
		  "name": "新疆",
		  "code": "650000"
		}, {
		  "name": "台湾省",
		    "code": "710000"
		}, {
		  "name": "香港",
		    "code": "810000"
		}, {
		  "name": "澳门",
		    "code": "820000"
		}]
		const provinceCityList = [{
		  name: "全国",
		  code: "",
		  children: [{
		    name: "全国",
		    code: ""
		  }]
		}, {
		  name: "北京",
		  code: "110000",
		  children: [{
		    name: "全北京",
		    code: "110000"
		  }]
		}, {
		  name: "天津",
		  code: "120000",
		  children: [{
		    name: "全天津",
		    code: "120000"
		  }]
		}, {
		  name: "河北",
		  code: "130000",
		  children: [{
		      code: 130000,
		      name: "全河北"
		    }, {
		      "name": "石家庄市",
		      "code": "130100"
		    },
		    {
		      "name": "唐山市",
		      "code": "130200"
		    },
		    {
		      "name": "秦皇岛市",
		      "code": "130300"
		    },
		    {
		      "name": "邯郸市",
		      "code": "130400"
		    },
		    {
		      "name": "邢台市",
		      "code": "130500"
		    },
		    {
		      "name": "保定市",
		      "code": "130600"
		    },
		    {
		      "name": "张家口市",
		      "code": "130700"
		    },
		    {
		      "name": "承德市",
		      "code": "130800"
		    },
		    {
		      "name": "沧州市",
		      "code": "130900"
		    },
		    {
		      "name": "廊坊市",
		      "code": "131000"
		    },
		    {
		      "name": "衡水市",
		      "code": "131100"
		    }
		  ]
		}, {
		  name: "山西",
		  code: "140000",
		  children: [{
		      "name": "全山西",
		      "code": "140000"
		    },
		    {
		      "name": "太原市",
		      "code": "140100"
		    },
		    {
		      "name": "大同市",
		      "code": "140200"
		    },
		    {
		      "name": "阳泉市",
		      "code": "140300"
		    },
		    {
		      "name": "长治市",
		      "code": "140400"
		    },
		    {
		      "name": "晋城市",
		      "code": "140500"
		    },
		    {
		      "name": "朔州市",
		      "code": "140600"
		    },
		    {
		      "name": "晋中市",
		      "code": "140700"
		    },
		    {
		      "name": "运城市",
		      "code": "140800"
		    },
		    {
		      "name": "忻州市",
		      "code": "140900"
		    },
		    {
		      "name": "临汾市",
		      "code": "141000"
		    },
		    {
		      "name": "吕梁市",
		      "code": "141100"
		    }
		  ]
		}, {
		  name: "内蒙古",
		  code: "150000",
		  "children": [
		    {"name": "全内蒙古", "code": "150000"},
		    {"name": "呼和浩特市", "code": "150100"},
		    {"name": "包头市", "code": "150200"},
		    {"name": "乌海市", "code": "150300"},
		    {"name": "赤峰市", "code": "150400"},
		    {"name": "通辽市", "code": "150500"},
		    {"name": "鄂尔多斯市", "code": "150600"},
		    {"name": "呼伦贝尔市", "code": "150700"},
		    {"name": "巴彦淖尔市", "code": "150800"},
		    {"name": "乌兰察布市", "code": "150900"},
		    {"name": "兴安盟", "code": "152200"},
		    {"name": "锡林郭勒盟", "code": "152500"},
		    {"name": "阿拉善盟", "code": "152900"}
		  ]
		}, {
		  name: "辽宁",
		  code: "210000",
		  "children": [
		    {"name": "全辽宁", "code": "210000"},
		    {"name": "沈阳市", "code": "210100"},
		    {"name": "大连市", "code": "210200"},
		    {"name": "鞍山市", "code": "210300"},
		    {"name": "抚顺市", "code": "210400"},
		    {"name": "本溪市", "code": "210500"},
		    {"name": "丹东市", "code": "210600"},
		    {"name": "锦州市", "code": "210700"},
		    {"name": "营口市", "code": "210800"},
		    {"name": "阜新市", "code": "210900"},
		    {"name": "辽阳市", "code": "211000"},
		    {"name": "盘锦市", "code": "211100"},
		    {"name": "铁岭市", "code": "211200"},
		    {"name": "朝阳市", "code": "211300"},
		    {"name": "葫芦岛市", "code": "211400"}
		  ]
		}, {
		  name: "吉林",
		  code: "220000",
		  "children": [
		    {"name": "全吉林", "code": "220000"},
		    {"name": "长春市", "code": "220100"},
		    {"name": "吉林市", "code": "220200"},
		    {"name": "四平市", "code": "220300"},
		    {"name": "辽源市", "code": "220400"},
		    {"name": "通化市", "code": "220500"},
		    {"name": "白山市", "code": "220600"},
		    {"name": "松原市", "code": "220700"},
		    {"name": "白城市", "code": "220800"},
		    {"name": "延边朝鲜族自治州", "code": "222400"}
		  ]
		}, {
		  name: "黑龙江",
		  code: "230000",
		  "children": [
		    {"name": "全黑龙江", "code": "230000"},
		    {"name": "哈尔滨市", "code": "230100"},
		    {"name": "齐齐哈尔市", "code": "230200"},
		    {"name": "鸡西市", "code": "230300"},
		    {"name": "鹤岗市", "code": "230400"},
		    {"name": "双鸭山市", "code": "230500"},
		    {"name": "大庆市", "code": "230600"},
		    {"name": "伊春市", "code": "230700"},
		    {"name": "佳木斯市", "code": "230800"},
		    {"name": "七台河市", "code": "230900"},
		    {"name": "牡丹江市", "code": "231000"},
		    {"name": "黑河市", "code": "231100"},
		    {"name": "绥化市", "code": "231200"},
		    {"name": "大兴安岭地区", "code": "232700"}
		  ]
		}, {
		  name: "上海",
		  code: "310000",
		  children: [
		    {
		      "name": "全上海", "code": "310000"
		    }
		  ]
		}, {
		  name: "江苏",
		  code: "320000",
		  "children": [
		    {"name": "全江苏", "code": "320000"},
		    {"name": "南京市", "code": "320100"},
		    {"name": "无锡市", "code": "320200"},
		    {"name": "徐州市", "code": "320300"},
		    {"name": "常州市", "code": "320400"},
		    {"name": "苏州市", "code": "320500"},
		    {"name": "南通市", "code": "320600"},
		    {"name": "连云港市", "code": "320700"},
		    {"name": "淮安市", "code": "320800"},
		    {"name": "盐城市", "code": "320900"},
		    {"name": "扬州市", "code": "321000"},
		    {"name": "镇江市", "code": "321100"},
		    {"name": "泰州市", "code": "321200"},
		    {"name": "宿迁市", "code": "321300"}
		  ]
		}, {
		  name: "浙江",
		  code: "330000",
		  "children": [
		    {"name": "全浙江", "code": "330000"},
		    {"name": "杭州市", "code": "330100"},
		    {"name": "宁波市", "code": "330200"},
		    {"name": "温州市", "code": "330300"},
		    {"name": "嘉兴市", "code": "330400"},
		    {"name": "湖州市", "code": "330500"},
		    {"name": "绍兴市", "code": "330600"},
		    {"name": "金华市", "code": "330700"},
		    {"name": "衢州市", "code": "330800"},
		    {"name": "舟山市", "code": "330900"},
		    {"name": "台州市", "code": "331000"},
		    {"name": "丽水市", "code": "331100"}
		  ]
		}, {
		  name: "安徽",
		  code: "340000",
		  "children": [
		    {"name": "全安徽", "code": "340000"},
		    {"name": "合肥市", "code": "340100"},
		    {"name": "芜湖市", "code": "340200"},
		    {"name": "蚌埠市", "code": "340300"},
		    {"name": "淮南市", "code": "340400"},
		    {"name": "马鞍山市", "code": "340500"},
		    {"name": "淮北市", "code": "340600"},
		    {"name": "铜陵市", "code": "340700"},
		    {"name": "安庆市", "code": "340800"},
		    {"name": "黄山市", "code": "341000"},
		    {"name": "滁州市", "code": "341100"},
		    {"name": "阜阳市", "code": "341200"},
		    {"name": "宿州市", "code": "341300"},
		    {"name": "六安市", "code": "341500"},
		    {"name": "亳州市", "code": "341600"},
		    {"name": "池州市", "code": "341700"},
		    {"name": "宣城市", "code": "341800"}
		  ]
		}, {
		  name: "福建",
		  code: "350000",
		  "children": [
		    {"name": "全福建", "code": "350000"},
		    {"name": "福州市", "code": "350100"},
		    {"name": "厦门市", "code": "350200"},
		    {"name": "莆田市", "code": "350300"},
		    {"name": "三明市", "code": "350400"},
		    {"name": "泉州市", "code": "350500"},
		    {"name": "漳州市", "code": "350600"},
		    {"name": "南平市", "code": "350700"},
		    {"name": "龙岩市", "code": "350800"},
		    {"name": "宁德市", "code": "350900"}
		  ]
		}, {
		  name: "江西",
		  code: "360000",
		  "children": [
		    {"name": "全江西", "code": "360000"},
		    {"name": "南昌市", "code": "360100"},
		    {"name": "景德镇市", "code": "360200"},
		    {"name": "萍乡市", "code": "360300"},
		    {"name": "九江市", "code": "360400"},
		    {"name": "新余市", "code": "360500"},
		    {"name": "鹰潭市", "code": "360600"},
		    {"name": "赣州市", "code": "360700"},
		    {"name": "吉安市", "code": "360800"},
		    {"name": "宜春市", "code": "360900"},
		    {"name": "抚州市", "code": "361000"},
		    {"name": "上饶市", "code": "361100"}
		  ]
		}, {
		  name: "山东",
		  code: "370000",
		  "children": [
		    {"name": "全山东", "code": "370000"},
		    {"name": "济南市", "code": "370100"},
		    {"name": "青岛市", "code": "370200"},
		    {"name": "淄博市", "code": "370300"},
		    {"name": "枣庄市", "code": "370400"},
		    {"name": "东营市", "code": "370500"},
		    {"name": "烟台市", "code": "370600"},
		    {"name": "潍坊市", "code": "370700"},
		    {"name": "济宁市", "code": "370800"},
		    {"name": "泰安市", "code": "370900"},
		    {"name": "威海市", "code": "371000"},
		    {"name": "日照市", "code": "371100"},
		    {"name": "临沂市", "code": "371300"},
		    {"name": "德州市", "code": "371400"},
		    {"name": "聊城市", "code": "371500"},
		    {"name": "滨州市", "code": "371600"},
		    {"name": "菏泽市", "code": "371700"}
		  ]
		}, {
		  name: "河南",
		  code: "410000",
		  "children": [
		    {"name": "全河南", "code": "410000"},
		    {"name": "郑州市", "code": "410100"},
		    {"name": "开封市", "code": "410200"},
		    {"name": "洛阳市", "code": "410300"},
		    {"name": "平顶山市", "code": "410400"},
		    {"name": "安阳市", "code": "410500"},
		    {"name": "鹤壁市", "code": "410600"},
		    {"name": "新乡市", "code": "410700"},
		    {"name": "焦作市", "code": "410800"},
		    {"name": "濮阳市", "code": "410900"},
		    {"name": "许昌市", "code": "411000"},
		    {"name": "漯河市", "code": "411100"},
		    {"name": "三门峡市", "code": "411200"},
		    {"name": "南阳市", "code": "411300"},
		    {"name": "商丘市", "code": "411400"},
		    {"name": "信阳市", "code": "411500"},
		    {"name": "周口市", "code": "411600"},
		    {"name": "驻马店市", "code": "411700"},
		    {"name": "省直辖县级行政区划", "code": "419000"}
		  ]
		}, {
		  name: "湖北",
		  code: "420000",
		  "children": [
		    {"name": "全湖北", "code": "420000"},
		    {"name": "武汉市", "code": "420100"},
		    {"name": "黄石市", "code": "420200"},
		    {"name": "十堰市", "code": "420300"},
		    {"name": "宜昌市", "code": "420500"},
		    {"name": "襄阳市", "code": "420600"},
		    {"name": "鄂州市", "code": "420700"},
		    {"name": "荆门市", "code": "420800"},
		    {"name": "孝感市", "code": "420900"},
		    {"name": "荆州市", "code": "421000"},
		    {"name": "黄冈市", "code": "421100"},
		    {"name": "咸宁市", "code": "421200"},
		    {"name": "随州市", "code": "421300"},
		    {"name": "恩施土家族苗族自治州", "code": "422800"},
		    {"name": "省直辖县级行政区划", "code": "429000"}
		  ]
		}, {
		  name: "湖南",
		  code: "430000",
		  "children": [
		    {"name": "全湖南", "code": "430000"},
		    {"name": "长沙市", "code": "430100"},
		    {"name": "株洲市", "code": "430200"},
		    {"name": "湘潭市", "code": "430300"},
		    {"name": "衡阳市", "code": "430400"},
		    {"name": "邵阳市", "code": "430500"},
		    {"name": "岳阳市", "code": "430600"},
		    {"name": "常德市", "code": "430700"},
		    {"name": "张家界市", "code": "430800"},
		    {"name": "益阳市", "code": "430900"},
		    {"name": "郴州市", "code": "431000"},
		    {"name": "永州市", "code": "431100"},
		    {"name": "怀化市", "code": "431200"},
		    {"name": "娄底市", "code": "431300"},
		    {"name": "湘西土家族苗族自治州", "code": "433100"}
		  ]
		}, {
		  name: "广东",
		  code: "440000",
		  "children": [
		    {"name": "全广东", "code": "440000"},
		    {"name": "广州市", "code": "440100"},
		    {"name": "韶关市", "code": "440200"},
		    {"name": "深圳市", "code": "440300"},
		    {"name": "珠海市", "code": "440400"},
		    {"name": "汕头市", "code": "440500"},
		    {"name": "佛山市", "code": "440600"},
		    {"name": "江门市", "code": "440700"},
		    {"name": "湛江市", "code": "440800"},
		    {"name": "茂名市", "code": "440900"},
		    {"name": "肇庆市", "code": "441200"},
		    {"name": "惠州市", "code": "441300"},
		    {"name": "梅州市", "code": "441400"},
		    {"name": "汕尾市", "code": "441500"},
		    {"name": "河源市", "code": "441600"},
		    {"name": "阳江市", "code": "441700"},
		    {"name": "清远市", "code": "441800"},
		    {"name": "东莞市", "code": "441900"},
		    {"name": "中山市", "code": "442000"},
		    {"name": "潮州市", "code": "445100"},
		    {"name": "揭阳市", "code": "445200"},
		    {"name": "云浮市", "code": "445300"}
		  ]
		}, {
		  name: "广西",
		  code: "450000",
		  "children": [
		    {"name": "全广西", "code": "450000"},
		    {"name": "南宁市", "code": "450100"},
		    {"name": "柳州市", "code": "450200"},
		    {"name": "桂林市", "code": "450300"},
		    {"name": "梧州市", "code": "450400"},
		    {"name": "北海市", "code": "450500"},
		    {"name": "防城港市", "code": "450600"},
		    {"name": "钦州市", "code": "450700"},
		    {"name": "贵港市", "code": "450800"},
		    {"name": "玉林市", "code": "450900"},
		    {"name": "百色市", "code": "451000"},
		    {"name": "贺州市", "code": "451100"},
		    {"name": "河池市", "code": "451200"},
		    {"name": "来宾市", "code": "451300"},
		    {"name": "崇左市", "code": "451400"}
		  ]
		}, {
		  name: "海南",
		  code: "460000",
		  "children": [
		    {"name": "全海南", "code": "460000"},
		    {"name": "海口市", "code": "460100"},
		    {"name": "三亚市", "code": "460200"},
		    {"name": "三沙市", "code": "460300"},
		    {"name": "儋州市", "code": "460400"},
		    {"name": "省直辖县级行政区划", "code": "469000"}
		  ]
		}, {
		  name: "重庆",
		  code: "500000",
		  "children": [
		    {"name": "全重庆", "code": "500000"}
		  ]
		}, {
		  name: "四川",
		  code: "510000",
		  "children": [
		    {"name": "全四川", "code": "510000"},
		    {"name": "成都市", "code": "510100"},
		    {"name": "自贡市", "code": "510300"},
		    {"name": "攀枝花市", "code": "510400"},
		    {"name": "泸州市", "code": "510500"},
		    {"name": "德阳市", "code": "510600"},
		    {"name": "绵阳市", "code": "510700"},
		    {"name": "广元市", "code": "510800"},
		    {"name": "遂宁市", "code": "510900"},
		    {"name": "内江市", "code": "511000"},
		    {"name": "乐山市", "code": "511100"},
		    {"name": "南充市", "code": "511300"},
		    {"name": "眉山市", "code": "511400"},
		    {"name": "宜宾市", "code": "511500"},
		    {"name": "广安市", "code": "511600"},
		    {"name": "达州市", "code": "511700"},
		    {"name": "雅安市", "code": "511800"},
		    {"name": "巴中市", "code": "511900"},
		    {"name": "资阳市", "code": "512000"},
		    {"name": "阿坝藏族羌族自治州", "code": "513200"},
		    {"name": "甘孜藏族自治州", "code": "513300"},
		    {"name": "凉山彝族自治州", "code": "513400"}
		  ]
		}, {
		  name: "贵州",
		  code: "520000",
		  "children": [
		    {"name": "全贵州", "code": "520000"},
		    {"name": "贵阳市", "code": "520100"},
		    {"name": "六盘水市", "code": "520200"},
		    {"name": "遵义市", "code": "520300"},
		    {"name": "安顺市", "code": "520400"},
		    {"name": "毕节市", "code": "520500"},
		    {"name": "铜仁市", "code": "520600"},
		    {"name": "黔西南布依族苗族自治州", "code": "522300"},
		    {"name": "黔东南苗族侗族自治州", "code": "522600"},
		    {"name": "黔南布依族苗族自治州", "code": "522700"}
		  ]
		}, {
		  name: "云南",
		  code: "530000",
		  "children": [
		    {"name": "全云南", "code": "530000"},
		    {"name": "昆明市", "code": "530100"},
		    {"name": "曲靖市", "code": "530300"},
		    {"name": "玉溪市", "code": "530400"},
		    {"name": "保山市", "code": "530500"},
		    {"name": "昭通市", "code": "530600"},
		    {"name": "丽江市", "code": "530700"},
		    {"name": "普洱市", "code": "530800"},
		    {"name": "临沧市", "code": "530900"},
		    {"name": "楚雄彝族自治州", "code": "532300"},
		    {"name": "红河哈尼族彝族自治州", "code": "532500"},
		    {"name": "文山壮族苗族自治州", "code": "532600"},
		    {"name": "西双版纳傣族自治州", "code": "532800"},
		    {"name": "大理白族自治州", "code": "532900"},
		    {"name": "德宏傣族景颇族自治州", "code": "533100"},
		    {"name": "怒江傈僳族自治州", "code": "533300"},
		    {"name": "迪庆藏族自治州", "code": "533400"}
		  ]
		}, {
		  name: "西藏",
		  code: "540000",
		  "children": [
		    {"name": "全西藏", "code": "540000"},
		    {"name": "拉萨市", "code": "540100"},
		    {"name": "日喀则市", "code": "540200"},
		    {"name": "昌都市", "code": "540300"},
		    {"name": "林芝市", "code": "540400"},
		    {"name": "山南市", "code": "540500"},
		    {"name": "那曲市", "code": "540600"},
		    {"name": "阿里地区", "code": "542500"}
		  ]
		}, {
		  name: "陕西",
		  code: "610000",
		  "children": [
		    {"name": "全陕西", "code": "610000"},
		    {"name": "西安市", "code": "610100"},
		    {"name": "铜川市", "code": "610200"},
		    {"name": "宝鸡市", "code": "610300"},
		    {"name": "咸阳市", "code": "610400"},
		    {"name": "渭南市", "code": "610500"},
		    {"name": "延安市", "code": "610600"},
		    {"name": "汉中市", "code": "610700"},
		    {"name": "榆林市", "code": "610800"},
		    {"name": "安康市", "code": "610900"},
		    {"name": "商洛市", "code": "611000"}
		  ]
		}, {
		  name: "甘肃",
		  code: "620000",
		  "children": [
		    {"name": "全甘肃", "code": "620000"},
		    {"name": "兰州市", "code": "620100"},
		    {"name": "嘉峪关市", "code": "620200"},
		    {"name": "金昌市", "code": "620300"},
		    {"name": "白银市", "code": "620400"},
		    {"name": "天水市", "code": "620500"},
		    {"name": "武威市", "code": "620600"},
		    {"name": "张掖市", "code": "620700"},
		    {"name": "平凉市", "code": "620800"},
		    {"name": "酒泉市", "code": "620900"},
		    {"name": "庆阳市", "code": "621000"},
		    {"name": "定西市", "code": "621100"},
		    {"name": "陇南市", "code": "621200"},
		    {"name": "临夏回族自治州", "code": "622900"},
		    {"name": "甘南藏族自治州", "code": "623000"}
		  ]
		}, {
		  name: "青海",
		  code: "630000",
		  "children": [
		    {"name": "全青海", "code": "630000"},
		    {"name": "西宁市", "code": "630100"},
		    {"name": "海东市", "code": "630200"},
		    {"name": "海北藏族自治州", "code": "632200"},
		    {"name": "黄南藏族自治州", "code": "632300"},
		    {"name": "海南藏族自治州", "code": "632500"},
		    {"name": "果洛藏族自治州", "code": "632600"},
		    {"name": "玉树藏族自治州", "code": "632700"},
		    {"name": "海西蒙古族藏族自治州", "code": "632800"}
		  ]
		}, {
		  name: "宁夏",
		  code: "640000",
		  "children": [
		    {"name": "全宁夏", "code": "640000"},
		    {"name": "银川市", "code": "640100"},
		    {"name": "石嘴山市", "code": "640200"},
		    {"name": "吴忠市", "code": "640300"},
		    {"name": "固原市", "code": "640400"},
		    {"name": "中卫市", "code": "640500"}
		  ]
		}, {
		  name: "新疆",
		  code: "650000",
		  "children": [
		    {"name": "全新疆", "code": "650000"},
		    {"name": "乌鲁木齐市", "code": "650100"},
		    {"name": "克拉玛依市", "code": "650200"},
		    {"name": "吐鲁番市", "code": "650400"},
		    {"name": "哈密市", "code": "650500"},
		    {"name": "昌吉回族自治州", "code": "652300"},
		    {"name": "博尔塔拉蒙古自治州", "code": "652700"},
		    {"name": "巴音郭楞蒙古自治州", "code": "652800"},
		    {"name": "阿克苏地区", "code": "652900"},
		    {"name": "克孜勒苏柯尔克孜自治州", "code": "653000"},
		    {"name": "喀什地区", "code": "653100"},
		    {"name": "和田地区", "code": "653200"},
		    {"name": "伊犁哈萨克自治州", "code": "654000"},
		    {"name": "塔城地区", "code": "654200"},
		    {"name": "阿勒泰地区", "code": "654300"},
		    {"name": "自治区直辖县级行政区划", "code": "659000"}
		  ]
		}, {
		  name: "台湾",
		  code: "710000",
		  "children": [
		    {"name": "全台湾", "code": "710000"},
		    {"name": "台北市", "code": "710100"},
		    {"name": "高雄市", "code": "710200"},
		    {"name": "基隆市", "code": "710300"},
		    {"name": "台中市", "code": "710400"},
		    {"name": "台南市", "code": "710500"},
		    {"name": "新竹市", "code": "710600"},
		    {"name": "嘉义市", "code": "710700"}
		  ]
		}, {
		  name: "香港",
		  code: "810000",
		  children: [{name: '全香港', code: '810000'}]
		}, {
		  name: "澳门",
		  code: "820000",
		  children: [{name: '全澳门', code: '820000'}]
		}]
		
const iconList=[{
					category:'物流公司',
					icon:'bus',
					color:'blue'
				},{
					category:'旅游车队',
					icon:'bus',
					color:'green'
				},{
					category:'个人车主',
					icon:'car',
					color:'yellow'
				},{
					category:'汽修配件',
					icon:'trademark',
					color:'cyan'
				},{
					category:'综合更多',
					icon:'info',
					color:'yellow'
				}];
  	

 
 export {
 	provinceList,
 	provinceCityList,
 	displayTime,
 	isPhone,
 	location,
 	dateUtil,
 	hasUinfo,
 	enter,
 	isWx,
 	globalData,
	iconList
 }
 


 





